//
//  Check.h
//  设计模式
//
//  Created by huyang on 2020/7/6.
//  Copyright © 2020 test. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "Person.h"
NS_ASSUME_NONNULL_BEGIN

typedef void(^SuccessBlock)(BOOL);

@interface Check : NSObject

/**
 下一个校验者
 */
@property (nonatomic, strong)Check *nextCheck;

/**
 最后成功时的调用
 */
@property (nonatomic, copy)SuccessBlock block;

- (void)handleCheck:(Person *)checkStr;



@end

NS_ASSUME_NONNULL_END
